IF NOT EXISTS(SELECT 1 FROM sys.triggers WHERE [Name] = '{0}_{1}_AspNet_SqlCacheNotification_Trigger') BEGIN
	DECLARE @exec AS VARCHAR(8000)
	SET @exec = '
	CREATE TRIGGER [{0}].[{0}_{1}_AspNet_SqlCacheNotification_Trigger] ON [{0}].[{1}]
	FOR INSERT, UPDATE, DELETE AS BEGIN
		SET NOCOUNT ON
		EXEC dbo.AspNet_SqlCacheUpdateChangeIdStoredProcedure N''{0}.{1}''
	END
	'
	EXEC(@exec)
END
